<template>
    <div class="goods-list">
        <div class="goods-item">
            <img src="https://img.alicdn.com/bao/uploaded/i1/TB1WT_ufUT1gK0jSZFrooUNCXXa_115032.jpg" alt="">
            <h1 class="title">Apple/苹果 iPhone 8 Plus</h1>
            <div class="info">
                <p class="price">
                    <span class="now">￥4499</span>
                    <span class="old">￥5299</span>
                </p>
                <p class="sell">
                    <span>热卖中</span>
                    <span>剩990件</span>
                </p>
            </div>
        </div>
        <div class="goods-item">
            <img src="https://img.alicdn.com/bao/uploaded/i1/TB1lN2tfQL0gK0jSZFt_AhQCXXa_115024.jpg" alt="">
            <h1 class="title">Apple/苹果 iPhone 8</h1>
            <div class="info">
                <p class="price">
                    <span class="now">￥3499</span>
                    <span class="old">￥4299</span>
                </p>
                <p class="sell">
                    <span>热卖中</span>
                    <span>剩990件</span>
                </p>
            </div>
        </div>
        <div class="goods-item">
            <img src="https://img.alicdn.com/bao/uploaded/i4/TB1qjAONQvoK1RjSZFwNKciCFXa_100148.jpg" alt="">
            <h1 class="title">HUAWEI HUAWEI P30</h1>
            <div class="info">
                <p class="price">
                    <span class="now">￥3999</span>
                    <span class="old">￥4599</span>
                </p>
                <p class="sell">
                    <span>热卖中</span>
                    <span>剩20件</span>
                </p>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            
        }
    },
    methods: {
        
    },
    
}
</script>

<style lang="scss" scoped>
.goods-list{
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    flex-wrap: wrap;
    .goods-item{
        width: 49%;
        border: 1px solid #ccc;
        box-shadow: 0 0 8px #ccc;
        margin: 4px 0;
        padding: 2px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 280px;
        img{
            width: 100%;
        }
        .title{
            font-size: 14px;
        }
        .info{
            p{
                margin: 0;
                padding: 5px;
            }
            .price{
                .now{
                    color: red;
                    font-weight: bold;
                    font-size: 16px;
                }
                .old{
                    text-decoration: line-through;
                    font-size: 12px;
                    margin-left: 10px;

                }
            }
            .sell{
                display: flex;
                justify-content: space-between;
                font-size: 13px;
            }
        }
    }
}
</style>